// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import Vant from 'vant'
import 'vant/lib/index.css'

const app = createApp(App)

app.use(createPinia())
app.use(router)

//适配屏幕宽度rem
const rootValue = 16
const rootWidth = 390  //390是按照Ip12pro为主流设备设置的，iphone12pro 是390*844
const deviceWidth = document.documentElement.clientWidth
document.documentElement.style.fontSize = deviceWidth*rootValue/rootWidth + 'px'

app.use(Vant);
app.mount('#app')
